import { baseRequest } from '@/utils/request'

const request = (url, ...arg) => baseRequest(`/website/config/` + url, ...arg)
export default {
	pageList(data) {
		return request('pageList', data, 'post')
	},
	listAll() {
		return request('listAll', null, 'get')
	},
	add(data) {
		return request('add', data, 'post')
	},
	edit(data) {
		return request('edit', data, 'post')
	},
	del(id) {
		return request(`del/${id}`, null, 'get')
	},
	getCompanyDict() {
		return request('getCompanyDict', null, 'get')
	}
}
